﻿using CommunityToolkit.Mvvm.ComponentModel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LongSCADA_WPF.Models
{
	public class EntityBase:ObservableObject
	{
		private int _id;

		[SugarColumn(IsPrimaryKey = true,IsIdentity = true)]
		public int Id
		{
			get => _id;
			//具体通知能力的属性
			set => SetProperty(ref _id, value);
		}

		private DateTime _createTime = DateTime.Now;
		public DateTime CreateTime
		{
			get => _createTime;
			//具体通知能力的属性
			set => SetProperty(ref _createTime, value);
		}

		private DateTime _updateTime = DateTime.Now;
		public DateTime UpdateTime
		{
			get => _updateTime;
			//具体通知能力的属性
			set => SetProperty(ref _updateTime, value);
		}

	}
}
